package com.alibaba.otter.node.etl.load.loader.mq.rabbit.model;

import com.alibaba.otter.node.etl.load.loader.mq.rabbit.MqConstants;
import lombok.Data;

@Data
public class ConnectionSetting {

    // Connection Info
    private String host;
    private Integer port;
    private String user;
    private String pwd;
    private String vhost;

    // 如果指定addrs 则忽略host和port
    private String addrs;

    // Connection Setting
    private long timeout;

    // channel pool settings
    private int minChannelSize = MqConstants.DEFAULT_MIN_CHANNEL_SIZE;
    private int coreChannelSize = MqConstants.DEFAULT_CORE_CHANNEL_SIZE;
    private int maxChannelSize = MqConstants.DEFAULT_MAX_CHANNEL_SIZE;
}
